package cn.gok.gokhappymall;

import cn.hutool.cache.CacheUtil;
import cn.hutool.cache.impl.TimedCache;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("cn.gok.gokhappymall.dao")
public class GokHappymallApplication {

    public static void main(String[] args) {
        SpringApplication.run(GokHappymallApplication.class, args);
    }


    @Bean
    public TimedCache<String, String> timedCache(){
        return CacheUtil.newTimedCache(300000);
    }
}
